<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Hoodoo::Services::Middleware::ExceptionReporting::Payload</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../../css/github.css" type="text/css" media="screen" />
<script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>
    <div class="banner">
        <h1>
            <span class="type">Class</span>
            Hoodoo::Services::Middleware::ExceptionReporting::Payload
                <span class="parent">&lt;
                    Object
                </span>
        </h1>
        <ul class="files">
            <li><a href="../../../../../files/lib/hoodoo/services/middleware/exception_reporting/exception_reporting_rb.html">lib/hoodoo/services/middleware/exception_reporting/exception_reporting.rb</a></li>
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    <div class="description">
      
<p><a href="../../Implementation.html">Implementation</a> detail of <a
href="../ExceptionReporting.html">Hoodoo::Services::Middleware::ExceptionReporting</a>
used to carry multiple parameters describing exception related data through
the <a
href="../../../Communicators/Pool.html#method-i-communicate">Hoodoo::Communicators::Pool#communicate</a>
mechanism.</p>

    </div>








    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
        <dt>N</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-c-new">new</a>
              </li>
          </ul>
        </dd>
    </dl>








      <!-- Section attributes -->
      <div class="sectiontitle">Attributes</div>
      <table border='0' cellpadding='5'>
          <tr valign='top' id='attribute-i-context'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>context</td>
            <td class='attr-desc'><p>A <a href="../../Context.html">Hoodoo::Services::Context</a> instance
describing the in-flight request/response cycle, if there is one. May be
<code>nil</code>.</p></td>
          </tr>
          <tr valign='top' id='attribute-i-exception'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>exception</td>
            <td class='attr-desc'><p>Exception (or Exception subclass) instance.</p></td>
          </tr>
          <tr valign='top' id='attribute-i-rack_env'>
            <td class='attr-rw'>
              [RW]
            </td>
            <td class='attr-name'>rack_env</td>
            <td class='attr-desc'><p><a href="../../../../Rack.html">Rack</a> environment (the unprocessed,
original Hash). May be <code>nil</code>.</p></td>
          </tr>
      </table>


    <!-- Methods -->
      <div class="sectiontitle">Class Public methods</div>
        <div class="method">
          <div class="title method-title" id="method-c-new">
              <b>new</b>( exception:, rack_env: nil, context: nil )
            <a href="../../../../../classes/Hoodoo/Services/Middleware/ExceptionReporting/Payload.html#method-c-new" name="method-c-new" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>Initialize this instance with named parameters:</p>
<dl class="rdoc-list note-list"><dt>exception
<dd>
<p>Exception (or Exception subclass) instance. Mandatory.</p>
</dd><dt><code>rack_env</code>
<dd>
<p><a href="../../../../Rack.html">Rack</a> environment hash. Optional.</p>
</dd><dt><code>context</code>
<dd>
<p><a href="../../Context.html">Hoodoo::Services::Context</a> instance.
Optional.</p>
</dd></dl>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
              </p>
              <div id="method-c-new_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/services/middleware/exception_reporting/exception_reporting.rb, line 128</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">initialize</span>( <span class="ruby-identifier">exception</span>,, <span class="ruby-identifier">rack_env</span><span class="ruby-operator">:</span> <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">context</span><span class="ruby-operator">:</span> <span class="ruby-keyword">nil</span> )
  <span class="ruby-ivar">@exception</span> = <span class="ruby-identifier">exception</span>
  <span class="ruby-ivar">@rack_env</span>  = <span class="ruby-identifier">rack_env</span>
  <span class="ruby-ivar">@context</span>   = <span class="ruby-identifier">context</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
</div>

    </div>
  </body>
</html>
